<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model \app\models\ChangePassword */
/* @var $form yii\widgets\ActiveForm */
//$model->oldpassword = $model->password = $model->repassword = '123456';
?>

<div class="user-form">

    <?php $form = ActiveForm::begin([
//        'enableAjaxValidation' => true,
    ]); ?>

    <?= $form->field($model, 'oldpassword')->passwordInput(['maxlength' => 255]) ?>

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => 255]) ?>

    <?= $form->field($model, 'repassword')->passwordInput(['maxlength' => 255]) ?>

    <div class="form-group">
        <button type="submit" class="btn btn-success">提交</button>
    </div>

    <?php ActiveForm::end(); ?>

</div>
